/*
 * Copyright (c) 2015. kupat Corporation. All rights reserved.
 *  see statement on http://www.kupat.cn.
 */
package com.kfgj.hkp.common.components.excel.export;

import com.kfgj.hkp.common.logging.Logger;
import com.kfgj.hkp.common.logging.LoggerFactory;

import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;


public class QueueFullRejectedExecutionHandler implements
		RejectedExecutionHandler {

	private static final Logger logger = LoggerFactory.getLogger(QueueFullRejectedExecutionHandler.class);
	
	public QueueFullRejectedExecutionHandler() {

	}

	@Override
	public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
//		System.out.println(r);
		logger.error(executor + " {executor and runnable} " + r);
		//we should not ignore this handler
	}

}
